import UploadLogService from '../service/upload-log-service';
import * as Koa from 'koa';

class UploadLogController {
  private service: UploadLogService = new UploadLogService();

  // 添加
  addUploadLog = async (ctx: Koa.Context) => {
    await this.service.addUploadLog(ctx);
  };

  // 删除
  delUploadLog = async (ctx: Koa.Context) => {
    await this.service.delUploadLog(ctx);
  };

  // 修改
  updateUploadLog = async (ctx: Koa.Context) => {
    await this.service.updateUploadLog(ctx);
  };

  // 查询
  searchUploadLog = async (ctx: Koa.Context) => {
    await this.service.searchUploadLog(ctx);
  };
}

export default new UploadLogController();
